import request from '@/util/request'

export default {
    findAllemployees() {
        return request({
            url: '/employee/list',
            method: 'get',
        })
    },
    findByPage(page,pageSize){
        return request({
            url:`/employee/findByPage/${page}/${pageSize}`,
            method:"get"
        })
    },
    search(page,pageSize,data){
        return request({
            url:`/employee/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    },
    save(url,method,data){
        return request(
            {url,method,data}
        )
    },
    delete(Id){
        return request({
            url:`/employee/delete/${Id}`,
            method:"delete"
        })
    },
}